package com.luke.star.helper.serviceImpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.luke.star.persist.mapper.StTaskMapper;
import com.luke.star.persist.mapper.StTaskNoteMapper;
import com.luke.star.persist.po.StTask;
import com.luke.star.persist.po.StTaskNote;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
public class StTaskHelperService {
	@Resource
	private StTaskMapper stTaskMapper;
	@Resource
	private StTaskNoteMapper stTaskNoteMapper;

	public void modifyTaskProgress(StTask record,StTaskNote noteRecord) {
		log.info("开始修改和记录任务的进度");
		stTaskMapper.updateByPrimaryKeySelective(record);
		stTaskNoteMapper.insertSelective(noteRecord);
		log.info("结束修改和记录任务的进度");
	}
}
